REM ********************************************************************
REM Stereo Script for SL203 (ver0.1)
REM ********************************************************************

REM ****** NAND tool command *******
11  LET NT_CMD_DumpStereoCali=133
12  LET NT_CMD_UpdateStereoCali=134

51  LET result = 1

100 FOREIGN KeyReview(0)
110 SYSTEM delay_us(1000000)

120 LET string1 = "NAND operation starting...."
130 LET string2 = "Do not remove power"
140 LET string3 = "Success(O),shutting down..."
150 LET string4 = "Fail!(X), Err="

200 SYSTEM ScreenString(100,40,string1)
210 SYSTEM ScreenString(100,70,string2)
220 SYSTEM delay_us(1000000)

REM 300 FOREIGN result = NANDScript_ExecuteCmd(NT_CMD_DumpStereoCali)
300 FOREIGN result = NANDScript_ExecuteCmd(NT_CMD_UpdateStereoCali)

400 IF result == 0 THEN 500 ELSE 600
500 SYSTEM ScreenString(100,100,string3)
510 SYSTEM delay_us(4000000)
520 FOREIGN result = PowerOff(1,0)
530 GOTO 1000

600 LET string4 = string4 + result
610 SYSTEM ScreenString(100,100,string4)
620 SYSTEM delay_us(4000000)
1000 END
RUN
